import asyncio
import time

from playwright.async_api import async_playwright


async def main():
    async with async_playwright() as p:
        url = "https://www.mate.vip"
        browser = await p.chromium.launch(headless=False, channel="chrome", args=['--start-maximized'])
        context = await browser.new_context(no_viewport=True, ignore_https_errors=True)
        page = await context.new_page()
        await page.goto(url)

        await asyncio.Event().wait()
        print("测试结束")




asyncio.run(main())
